package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.BaseSysRoleDetail;
import com.ly.user_system.dto.BaseSysRoleDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("base_sys_role")
@Data
@AutoMappers({
        @AutoMapper(target = BaseSysRoleDTO.class),
        @AutoMapper(target = BaseSysRoleDetail.class)
})
public class BaseSysRole extends BaseEntity {
    @TableField("user_id")
    private Long userId;
    @TableField("name")
    private String name;
    @TableField("label")
    private String label;
    @TableField("remark")
    private String remark;
    @TableField("relevance")
    private Integer relevance;
    @TableField("menu_id_list")
    private String menuIdList;
    @TableField("department_id_list")
    private String departmentIdList;
}